package com.zhi.syc.data_applist.services;

import android.content.Context;
import com.zhi.syc.data_applist.beans.ASDeviceInfoBean;
import com.zhi.syc.data_applist.util.ASGeneralUtil;
import com.zhi.syc.data_applist.util.ASHarewareUtil;
import com.zhi.syc.data_applist.util.ASNetworkUtil;
import com.zhi.syc.data_applist.util.ASStoreUtil;

public class ASDeviceInfo {

    public static ASDeviceInfoBean getDeviceInfo(Context paramContext) {
        ASDeviceInfoBean deviceInfo = new ASDeviceInfoBean();
        try {
            deviceInfo.setMac(ASNetworkUtil.getMacAddress(paramContext));
            deviceInfo.setImei(ASGeneralUtil.getImei(paramContext));
            deviceInfo.setLaguage(ASGeneralUtil.getLanguage(paramContext));
            deviceInfo.setArea(ASGeneralUtil.getArea(paramContext));
            deviceInfo.setScreenHeight(ASGeneralUtil.getDeviceHeight(paramContext));
            deviceInfo.setScreenWidth(ASGeneralUtil.getDeviceWidth(paramContext));
            deviceInfo.setNetworkData(ASGeneralUtil.getSimOperatorName(paramContext));
            deviceInfo.setFrontCameraPixels(ASHarewareUtil.getFrontCameraPixels(paramContext));
            deviceInfo.setRearCameraPixels(ASHarewareUtil.getBackCameraPixels(paramContext));
            deviceInfo.setRam(ASStoreUtil.getRamTotal(paramContext));
            deviceInfo.setRom(ASStoreUtil.getCashTotal(paramContext));
            deviceInfo.setIp(ASNetworkUtil.getIPAddress(paramContext));
            deviceInfo.setNetworkEnvironment(ASGeneralUtil.getNetworkType(paramContext));
            deviceInfo.setCpu(ASGeneralUtil.getCpuModel(paramContext));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return deviceInfo;
    }
}
